/**
 * 
 */
package com.aaron.client;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Contains path information and a string of text
 * @author aaron
 *
 */
public class Document implements IsSerializable {
	private String text;
	private String path;
	/**
	 * Create a blank, pathless document
	 *
	 */
	public Document(){
		this.path="";
		this.text="";
	}
	/**
	 * 
	 * @param path The absolute path to the document as it exists on the server
	 * @param text The contents of the document
	 */
	public Document(String path, String text){
		this.path=path;
		this.text=text;
	}
	/**
	 * 
	 * @return The absolute path to the document as it exists on the server
	 */
	public String getPath(){
		return this.path;
	}
	/**
	 * 
	 * @param path The absolute path to the document as it exists on the server
	 */
	public void setPath(String path){
		this.path=path;
	}
	/**
	 * 
	 * @return The contents of the document
	 */
	public String getText(){
		return this.text;
	}
	/**
	 * 
	 * @param text The contents of the document
	 */
	public void setText(String text){
		this.text=text;
	}
}
